package java56_8;

import java.util.Scanner;

public class Review {

	public static void main(String[] args) {
		// String ,int ,double,char,long,boolean,byte,short,float
		// long l = 1000L;
		// float f = 3.555F;
		// byte b = 120;
		// Scanner in = new Scanner(System.in);
		// int[] ar = new int[5];
		// System.out.println("输入几个数：");
		// for (int i = 0; i < ar.length; ar[i++] = in.nextInt())
		// ;
		//
		// for (int i = 0; i < ar.length; System.out.print(ar[i] + "\t"), i++)
		// ;
		// 从数组中删除
		int[] a2 = { 1, 3, 4, 6, 8, 9 };
		int pos = 3;
		// 从pos位置开始，所有的往前进一位
		for (int j = pos; j < a2.length - 1; j++) {
			a2[j] = a2[j + 1];
		}
		// 把最后一个 置空
		a2[a2.length - 1] = 0;
		for (int k : a2) {
			System.out.print(k + " ");
		}
	}

}
